import axios from '../axios'

/*
 * 机构管理模块
 */

// 保存
export const save = (data) => {
    return axios({
        url: '/dept/save',
        method: 'post',
        data
    })
}
// 删除
export const batchDelete = (data) => {
    return axios({
        url: '/dept/delete',
        method: 'post',
        data
    })
}
// 查询机构树
export const findDeptTree = () => {
    return axios({
        url: '/dept/findTree',
        method: 'get'
    })
}
// 查询学生树
export const findStudentTree = () => {
  return axios({
      url: '/dept/findStudentTree',
      method: 'get'
  })
}

// 根据教师查询班级
export const findDeptsByUser = (params) => {
  return axios({
      url: '/dept/findDeptsByUser',
      method: 'get',
      params: params
  })
}

